package com.xinfu.newproject.adapter.complaint_adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xinfu.newproject.R;
import com.xinfu.newproject.data.DataServer;
import com.xinfu.newproject.entity.Status;

/**
 * https://github.com/CymChad/BaseRecyclerViewAdapterHelper
 */
public class ComplaintHeaderAndFooterAdapter extends BaseQuickAdapter<Status, BaseViewHolder> {

    public ComplaintHeaderAndFooterAdapter(int dataSize) {
        super(R.layout.item_complaint_choose_type, DataServer.getSampleData(dataSize));
    }

    @Override
    protected void convert(BaseViewHolder helper, Status item) {

        switch (helper.getLayoutPosition() %
                6) {
            case 0:
                helper.setText(R.id.item_complaint_choose_type_tv, "保洁");
                break;
            case 1:
                helper.setText(R.id.item_complaint_choose_type_tv, "保绿");
                break;
            case 2:
                helper.setText(R.id.item_complaint_choose_type_tv, "维修");
                break;
            case 3:
                helper.setText(R.id.item_complaint_choose_type_tv, "保安");
                break;
            case 4:
                helper.setText(R.id.item_complaint_choose_type_tv, "客服");
                break;
            case 5:
                helper.setText(R.id.item_complaint_choose_type_tv, "其他");
                break;
            default:
                break;
        }
    }


}
